package Properties_;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class properties_ {
    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        properties.setProperty("user", "汤姆");
        properties.setProperty("pwd", "abc123");
        properties.store(new FileWriter("src\\scratch.txt"), "hello,world");
    }
}
